package com.billProvider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.billProvider.entity.FinaBillEcharts;
import entity.Bill;
import entity.ResponseMessage;
import entity.Storebill;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author oahner
 * @create 2022-04-18 9:50
 */
@Mapper
public interface FinaBillMapper extends BaseMapper<Bill> {

        /**
         * 获取财务账单列表
         * @param bill
         * @return
         */
        public List<Bill> selFinaBill(Bill bill);

        /**
         * 获取最近7天财务账单，渲染折线图
         * @param
         * @return
         */
        public List<Bill> selFinaBillInLastW();

        /**
         * 获取上月财务账单，渲染饼图
         * @param
         * @return
         */
        public List<FinaBillEcharts> selFinaBillInLastM();

        /**
         * 获取去年财务账单，渲染饼图
         * @param
         * @return
         */
        public List<FinaBillEcharts> selFinaBillInLastY();

}
